package cn.jeefast.common.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author theodo
 * @since 2019-12-30
 */
@TableName("mb_patient")
public class MbPatient extends Model<MbPatient> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 姓名
     */
	@TableField("pat_name")
	private String patName;
    /**
     * 1：男 0：女
     */
	private Integer sex;
    /**
     * 年龄
     */
	private Integer age;
    /**
     * 身高
     */
	private Double tall;
    /**
     * 项目ID
     */
	@TableField("proj_id")
	private Long projId;
    /**
     * 研究组ID
     */
	@TableField("res_id")
	private Long resId;
    /**
     * 诊断
     */
	private String diagnosis;

	/**
	 * 医生ID
	 */
	@TableField("doc_id")
	private Long docId;

	/**
	 * 用药
	 */
	@TableField("tp_id")
	private String tpId;

	/**
	 * 治疗方案
	 */
	@TableField("dw_id")
	private Long dwId;

	private Integer deletes;

	private Date times;

	public Integer getDeletes() {
		return deletes;
	}

	public void setDeletes(Integer deletes) {
		this.deletes = deletes;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPatName() {
		return patName;
	}

	public void setPatName(String patName) {
		this.patName = patName;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Double getTall() {
		return tall;
	}

	public void setTall(Double tall) {
		this.tall = tall;
	}

	public Long getProjId() {
		return projId;
	}

	public void setProjId(Long projId) {
		this.projId = projId;
	}

	public Long getResId() {
		return resId;
	}

	public void setResId(Long resId) {
		this.resId = resId;
	}

	public String getDiagnosis() {
		return diagnosis;
	}

	public void setDiagnosis(String diagnosis) {
		this.diagnosis = diagnosis;
	}

	public Long getDocId() {
		return docId;
	}

	public void setDocId(Long docId) {
		this.docId = docId;
	}

	public String getTpId() {
		return tpId;
	}

	public void setTpId(String tpId) {
		this.tpId = tpId;
	}

	public Long getDwId() {
		return dwId;
	}

	public void setDwId(Long dwId) {
		this.dwId = dwId;
	}


	public Date getTimes() {
		return times;
	}

	public void setTimes(Date times) {
		this.times = times;
	}



	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "MbPatient{" +
			", id=" + id +
			", patName=" + patName +
			", sex=" + sex +
			", age=" + age +
			", tall=" + tall +
			", projId=" + projId +
			", resId=" + resId +
			", diagnosis=" + diagnosis +
			"}";
	}
}
